<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="connDbBean" scope="page" class="com.util.db"/>


<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<script type="text/javascript" src="js/popup.js"></script>
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<TITLE>修改教师信息</TITLE>
	    <link rel="stylesheet" href="kindeditor_a5/themes/default/default.css" />
	<link rel="stylesheet" href="kindeditor_a5/plugins/code/prettify.css" />
	<script charset="utf-8" src="kindeditor_a5/kindeditor.js"></script>
	<script charset="utf-8" src="kindeditor_a5/lang/zh_CN.js"></script>
	<script charset="utf-8" src="kindeditor_a5/plugins/code/prettify.js"></script>
	<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="note"]', {
				cssPath : 'kindeditor_a5/plugins/code/prettify.css',
				uploadJson : 'kindeditor_a5/jsp/upload_json.jsp',
				fileManagerJson : 'kindeditor_a5/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
-->
</style>

	</head>
<%
  String id="";

   %>
<script language="javascript">

function gows()
{
	document.location.href="teacher_add.jsp?id=<%=id%>";
}
function hsgxia2shxurxu(nstr,nwbk)   //db.java
{ 
	if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
	{
		eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+"；", "");
	}
	else
	{
		eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+"；";
	}
}
</script>
	<body>
			<form action="updateTeacher.do" name="form1" method="post">
				      <table width="100%" border="1" align="center" cellpadding="3" cellspacing="1"  style="border-collapse:collapse" bgcolor="#F2FDFF">
						<tr bgcolor="#E7E7E7">
							<td height="20" colspan="2" background="images/table_header.gif">修改规划师信息<input type="hidden" name="id" value="${teacher.id}" /></td>
						</tr>
						<tr ><td width="200">员工编号：</td><td><input name='t_no' type='text' id='t_no' value='' onblur='hsgcheck()' style='border:solid 1px #000000; color:#666666' />&nbsp;*<label id='clabelt_no' /></td></tr>
                        <tr ><td width="200">员工照片：</td><td><input name='photo' type='text' id='photo' size='50' value='' onblur='' style='border:solid 1px #000000; color:#666666' />&nbsp;<input type='button' value='上传' onClick="up('photo')" style='border:solid 1px #000000; color:#666666'/></td></tr>
                        <tr ><td width="200">员工姓名：</td><td><input name='t_name' type='text' id='t_name' value='' onblur='' style='border:solid 1px #000000; color:#666666' /></td></tr>
                        <tr ><td width="200">员工性别：</td><td><select name='t_sex' id='t_sex'><option value="男">男</option><option value="女">女</option></select>&nbsp;*<label id='clabelt_sex' /></td></tr>

                        <tr ><td width="200">员工年龄：</td><td><input name='t_age' type='text' id='t_age' value='' onblur='' style='border:solid 1px #000000; color:#666666' /></td></tr>
                        <tr ><td width="200">联系方式：</td><td><input name='phone' type='text' id='phone' value='' onblur='checkform()' style='border:solid 1px #000000; color:#666666' />&nbsp;*<label id='clabelphone' /></td></tr>
                        <tr ><td width="200">身份证号：</td><td><input name='ID_number' type='text' id='ID_number' value='' onblur='checkform()' style='border:solid 1px #000000; color:#666666' />&nbsp;*<label id='clabelID_number' /></td></tr>
                        <tr ><td width="200">工作年限：</td><td><input name='work_year' type='text' id='work_year' value='' onblur='' style='border:solid 1px #000000; color:#666666' /></td></tr>
                        <tr ><td width="200">个人薪资：</td><td><input name='salary' type='text' id='salary' value='' onblur='' style='border:solid 1px #000000; color:#666666' /></td></tr>



                        <tr ><td width="200">教师介绍：</td><td><textarea name="note" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;"></textarea></td></tr>


						<tr align='center'   height="22">
						    <td width="25%"  align="right">&nbsp;

						    </td>
						    <td width="75%"  align="left">
						       <input type="submit" name="querenxiugai" id="querenxiugai" value="提交" onClick="return checkform();"/>
						       <input type="reset" value="重置"/>&nbsp;
						    </td>
						</tr>
						<script language="javascript">document.form1.t_no.value='${teacher.t_no}';</script>
                        <script language="javascript">document.form1.photo.value='${teacher.photo}';</script>
                        <script language="javascript">document.form1.t_name.value='${teacher.t_name}';</script>
                        <script language="javascript">document.form1.t_sex.value='${teacher.t_sex}';</script>
                        <script language="javascript">document.form1.t_age.value='${teacher.t_age}';</script>
                        <script language="javascript">document.form1.phone.value='${teacher.phone}';</script>
                        <script language="javascript">document.form1.ID_number.value='${teacher.ID_number}';</script>
                        <script language="javascript">document.form1.work_year.value='${teacher.work_year}';</script>
                         <script language="javascript">document.form1.salary.value='${teacher.salary}';</script>
                        <script language="javascript">document.form1.note.value='${teacher.note}';</script>

					 </table>
			</form>
   </body>
</html>






<script language=javascript >

 function checkform(){

	var t_noobj = document.getElementById("t_no"); if(t_noobj.value==""){document.getElementById("clabelt_no").innerHTML="&nbsp;&nbsp;<font color=red>请输入员工编号</font>";return false;}else{document.getElementById("clabelt_no").innerHTML="  "; }
	var phoneobj = document.getElementById("phone"); if(phoneobj.value==""){document.getElementById("clabeljphone").innerHTML="&nbsp;&nbsp;<font color=red>请输入联系方式</font>";return false;}else{document.getElementById("clabelphone").innerHTML="  "; }
	var ID_numberobj = document.getElementById("ID_number"); if(ID_numberobj.value==""){document.getElementById("clabelID_number").innerHTML="&nbsp;&nbsp;<font color=red>请输入身份证号</font>";return false;}else{document.getElementById("clabelID_number").innerHTML="  "; }




return true;
}
popheight=450;
</script>
